#LOG_FILE=$1
#cat $LOG_FILE  |  awk  ' { cpu+=$2 ; io+=$3; mem+=$4 ; con+=$5 } END {print cpu,io , mem , con } '

# /bin/bash
CONTAINER=$1
#ps xuf |  grep httpd | grep $CONTAINER | awk  ' { SUM+=$3} END {print SUM} '
#vmstat 1 3 | awk  ' { SUM+=$15} END {print 100- (SUM -100)/2 } '
vmstat 1 60 | sed  '1,3d' | awk '{ SUM+=100-$15} END {print SUM/59} '

